package io.renren.modules.ProjectControl;


import io.renren.modules.ProjectControl.Service.taskService.TaskServiceP2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/P2")
public class MonitorController {

    @Autowired
    TaskServiceP2 taskServiceP2;


    @RequestMapping("/hanji")
    public  String hanji(@RequestBody Map<String, Object> params){

        return taskServiceP2.hanji(params);
    }
    @RequestMapping("/moni_qiegeji")
    public  String moni_qiegeji(@RequestBody Map<String, Object> params){

        return taskServiceP2.moni_qiegeji(params);
    }
    @RequestMapping("/all")
    public  String queryAll(){

        return taskServiceP2.queryAll();
    }
    @RequestMapping("/hanji1")
    public  String hanji1(){

        return taskServiceP2.hanji1();
    }
    @RequestMapping("/hanji2")
    public  String hanji2(){

        return taskServiceP2.hanji2();
    }
    @RequestMapping("/fault_qiege")
    public  String fault_qiege(){

        return taskServiceP2.fault_qiege();
    }
    @RequestMapping("/fault")
    public  String fault_hanji(){

        return taskServiceP2.fault_hanji();
    }
    @RequestMapping("/train")
    public  String train(){

        return taskServiceP2.train();
    }
    @RequestMapping("/reset")
    public  String reset(){

        return taskServiceP2.reset();
    }
    @RequestMapping("/lamda")
    public  String lamda(){

        return taskServiceP2.lamda();
    }



}
